package com.foryou.system.modules.wx.service.impl;

import com.foryou.system.modules.wx.dao.SubjectDao;
import com.foryou.system.modules.wx.entity.SubjectEntity;
import com.foryou.system.modules.wx.service.SubjectService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SubjectServiceImpl implements SubjectService {

    private final SubjectDao subjectDao;

    public SubjectServiceImpl(SubjectDao subjectDao) {
        this.subjectDao = subjectDao;
    }

    @Override
    public List<SubjectEntity> queryList(Map<String, Object> map) {
        return subjectDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return subjectDao.queryTotal(map);
    }

    @Override
    public SubjectEntity getSubjectInfo(Long id) {
        return subjectDao.getSubjectInfo(id);
    }

    @Override
    public int add(Map<String, Object> map) {
        return subjectDao.add(map);
    }

    @Override
    public int update(Map<String, Object> map) {
        return subjectDao.update(map);
    }

    @Override
    public int remove(Long[] ids) {
        return subjectDao.remove(ids);
    }

    @Override
    public int delete(Long[] ids) {
        return subjectDao.delete(ids);
    }

    @Override
    public int queryByName(String name) {
        return subjectDao.queryByName(name);
    }
}
